<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>注册</title>
    <link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/4.0.0-alpha/css/bootstrap.css">
    <style>
        .account{
            width: 600px;
            margin: 0 auto;
        }
    </style>
</head>
<body>
<div class="account">
<h1>注册</h1>
<form class="form-horizontal">
    {% for field in form %}
        {% if field.name != 'code' %}
          <div >
            <label for="{{ field.id_for_label }}" >
                {{ field.label }}
            </label>
              {{ field }}
          </div>
        {% else %}
          <div>
            <label for="{{ field.id_for_label }}" >
                {{ field.label }}
            </label>
            <div class='clearfix'>
              <div class="col-md-6" style="padding-left: 0">{{ field }}</div>
              <div class="col-md-6"><input type="button" class="btn btn-default" value="点击发送验证码"></div>
            </div>
          </div>
        {% endif %}
    {% endfor %}
      <button type="submit" class="btn btn-primary">注 册</button>
</form>
</div>
</body>
</html>